//
//  LeftButton.m
//  Daybook
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "LeftButton.h"
#import "Common.h"

@interface LeftButton  ()



@end
@implementation LeftButton

#pragma mark 设置Button内部的image的范围
- (CGRect)imageRectForContentRect:(CGRect)contentRect
{
    CGFloat imageW = contentRect.size.height / 5 * 4;
    CGFloat imageX = contentRect.size.width / 8 * 2;
    CGFloat imageY = contentRect.size.height / 11 * 1;
    
    return CGRectMake(imageX, imageY, imageW, imageW);
}

#pragma mark 设置Button内部的title的范围
- (CGRect)titleRectForContentRect:(CGRect)contentRect
{
    CGFloat titleH = contentRect.size.height;
    CGFloat titleX = contentRect.size.width / 8 * 4;
    CGFloat titleW = contentRect.size.width / 5 * 2;
    
    return CGRectMake(titleX, 0, titleW, titleH);
}


@end
